import React from 'react';
import ReactDOM from 'react-dom/client';
import Home from './components/Home';
import Counter from './components/Counter';
import {Provider} from 'react-redux';
import {HistoryRouter} from 'redux-first-history/rr6';
import {store,history} from './store';
import {Link,Routes,Route} from 'react-router-dom';
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
	<Provider store={store}>
		<HistoryRouter history={history}>
			<ul>
				<li><Link to="/">Home</Link></li>
				<li><Link to="/counter">Counter</Link></li>
			</ul>
			<Routes>
				<Route path="/" element={<Home/>}/>
				<Route path="/counter" element={<Counter/>}/>
			</Routes>
		</HistoryRouter>
	</Provider>
);
//Uncaught TypeError: Cannot read properties of undefined (reading 'action')